<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="dto.SolicitudArticuloDTO"%>
<%@ page import= "java.util.Iterator"%>
<%@ page import= "java.util.List"%>

<html>
<head>
	<title>Lista de Solicitudes de Articulos</title>
</head>
<body>

<table cellspacing="3" cellpadding="3" border="1" width="500">
	<tr>
		<td colspan="4"><b>Lista de Solicitudes de Articulos</b></td>
	</tr>
	<tr>
		<td><b>Id</b></td>
		<td><b>Codigo Articulo</b></td>
		<td><b>Cantidad Pedida</b></td>
		<td><b>Cantidad Recibida</b></td>
		<td><b>Modulo</b></td>
		<td><b>Estado</b></td>
		
		
		
	</tr>
<%
	SolicitudArticuloDTO aux;
	Integer id; 	
	List<SolicitudArticuloDTO> solicitudes = (List<SolicitudArticuloDTO>)request.getAttribute("solicitudes");
	for(Iterator<SolicitudArticuloDTO> i = solicitudes.iterator(); i.hasNext();)
	{
		aux = i.next();
		id = aux.getId();
%>
	<tr>
	
		<td><%=aux.getId()%></td>	
 		<td><%=aux.getArticulo().getCodigo()%></td>
 		<td><%=aux.getCantidadPedida()%></td>
 		<td><%=aux.getCantidadRecibida()%></td>
		<td><%=aux.getIdModulo()%></td>
		<td><%=aux.getEstado()%></td>
		
	
		
		
	</tr>
<% } %>

</table>
</body>
</html>